package drh.test;

import java.util.List;


import drh.bean.Order;
import drh.dao.OrderDao;
import drh.dao.impl.OrderDaoImpl;

public class testOrder {
	static OrderDao dao = new OrderDaoImpl();
	public static void main(String[] args) {
		//getOrderPaging();
		//dao.deleteOrderById(13);
		//dao.updateOrder(new Order(12, 12 ,"12", 12,12, 12, "12", 12, "2009-07-09", 12, 12));
		dao.addOrder(new Order(13,"13", null, 13, 13, 13, "2009-07-06"));
	}
	private static void getOrderPaging() {
		List<Order> getOrderPaging = dao.GetOrderPaging(1,12);
		for (Order order : getOrderPaging) {
			System.out.println(order);
		}
	} 
}
